home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
util
/
rexx
/
UKNews.lha
/
UKNews.ap
next >
Wrap
Text File
|
1996-09-30
|
1KB
|
84 lines
/* Go UKNEWS by Les Hewitt, September 1996 */
options results
call addlib('rexxsupport.library',0,-30,0)
call addlib('rexxarplib.library',0,-30,0)
/* ================== Variables ================= */
CaptureFile = 'RAM:UKNews'
NumberOfStories = 200
/* ======== prepare and enter AutoPilot ========== */
dummy = postmsg(200,175,'Going OnLine!','AutoPilot')
call delay 60
dummy = postmsg()
if show('P','AP_REXX') then do
if show('P','HANDSON_REXX') then exit
end
else do
address command "run ap:AutoPilot"
address command 'waitforport AP_REXX'
end
address AP_REXX
/* =============== Log on CIS ==================== */
logon
portup='no'
do forever
address command 'waitforport HANDSON_REXX'
if rc=0 then do
portup='yes'
leave
end
end
if portup='yes' then do
address 'HANDSON_REXX'
call delay 100
/* =============== Go UKNEWS ==================== */
send 'go uknews'
waitfor 'Enter choice ! 30'
send '1'
waitfor 'Enter choice or <CR> for more ! 30'
send 'SET PAGED NO'
waitfor 'Enter choice or <CR> for more ! 30'
opencapture CaptureFile
do j=1 to NumberOfStories
send j
waitfor 'Last page ! 30'
if rc > 0 then do
MESSAGE " **** Finished ****"
closecapture
send 'off'
endterm
exit
end
end
closecapture
send 'off'
endterm
exit